package com.hope;

public class Cat {
    private String name = "招财猫";
    public int age = 10;

    public Cat() {
    } //无参构造器

    public Cat(String name) {
        this.name = name;
    }

    public void hi() {
//        System.out.println("hi" + name);
    }

    public void cry() {
        System.out.println("喵喵叫");
    }
}
